package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @Author mr.luo
 * @Date 24 5月 2025 15:42
 */
@Slf4j
@Component("cacelReservationJob")
public class CacelReservationJob {
    @Autowired
    private IReservationService reservationService;
    public void cacelReservationJob() {
        log.info("自定义更新预约任务开始");
        reservationService.cancelReservationById();
        log.info("此次任务结束");
    }
}
